package com.coolt.client.ui;

import com.google.gwt.i18n.client.HasDirection.Direction;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.FlexTable;
import com.google.gwt.user.client.ui.HasHorizontalAlignment;
import com.google.gwt.user.client.ui.HasVerticalAlignment;
import com.google.gwt.user.client.ui.HorizontalPanel;
import com.google.gwt.user.client.ui.Hyperlink;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.VerticalPanel;
import com.gwtext.client.widgets.Button;
import com.gwtext.client.widgets.form.TextField;

public class Convites extends Composite {

	public Convites() {
		
		
		final HorizontalPanel horizontalPanel = new HorizontalPanel();
		initWidget(horizontalPanel);
	
		
		final VerticalPanel horizontalPanel_1 = new VerticalPanel();
		horizontalPanel.add(horizontalPanel_1);
		horizontalPanel_1.setWidth("155");

		final VerticalPanel titulo = new VerticalPanel();
		horizontalPanel_1.add(titulo);
		titulo.setSize("155", "26");
		titulo.setStyleName("fundo_titulo_menor");
		

		final Hyperlink convitelabelHyperlink = new Hyperlink("Convite", "some history token");
		convitelabelHyperlink.setStyleName("linkssecoes");
		titulo.add(convitelabelHyperlink);
		titulo.setCellVerticalAlignment(convitelabelHyperlink, HasVerticalAlignment.ALIGN_MIDDLE);
		titulo.setCellHorizontalAlignment(convitelabelHyperlink, HasHorizontalAlignment.ALIGN_LEFT);
		final FlexTable flexTable = new FlexTable();
		horizontalPanel_1.add(flexTable);
		horizontalPanel_1.setCellHorizontalAlignment(flexTable, HasHorizontalAlignment.ALIGN_CENTER);

		final Label nomeLabel = new Label("Nome");
		flexTable.setWidget(0, 0, nomeLabel);

		final TextField textField = new TextField();
		flexTable.setWidget(1, 0, textField);

		final Label emailLabel = new Label("E-mail");
		flexTable.setWidget(2, 0, emailLabel);

		final Button convidarButton = new Button("New Button");
		convidarButton.setStateId("");
		flexTable.setWidget(4, 0, convidarButton);
		
		convidarButton.setText("Convidar");
		convidarButton.setStyleName("btconvid");

		final TextField textField_1 = new TextField();
		flexTable.setWidget(3, 0, textField_1);

	}

}
